<data filepath="service/comp/config/Config.data.m">
	<mapping table="common_config">
		
	</mapping>
	<validator />
	<class>
		<property name="id" dataType="String" primary="true"
			did="C82402B7C7900001555011BF5D528C90" extType="String" length="">
			<label>主键ID</label>
		</property>
		<property name="fkey" dataType="String"
			did="C82402B7C7A0000134BA11AF14609F30" extType="String" length="">
			<label xmlns="http://www.justep.com/model">键</label>
		</property>
		<property xmlns="http://www.justep.com/model"
			did="C824F02DD5E00001A4D7A0E014F424B0" dataType="String"
			extType="String" name="fvalue">
			<label>值</label>
		</property>
		<property xmlns="http://www.justep.com/model"
			did="C824F03009600001273BB6E0EFA01D32" dataType="String"
			extType="String" name="flabel">
			<label>描述</label>
		</property>
		<property xmlns="http://www.justep.com/model"
			did="C824F03355600001912E1B3A19E024D0" dataType="String"
			extType="String" name="fgroup">
			<label>分组</label>
		</property>
		<property xmlns="http://www.justep.com/model"
			did="C824F03355600001912E1B3A19E083D0" dataType="Integer"
			extType="Boolean" name="issecure" default="0">
			<label>是否安全字段</label>
		</property>
		<label xmlns="http://www.justep.com/model">配置信息</label>
	</class>
	<access>
		<method name="findByAppId" type="query" isSql="true">
			<jpql>
				<![CDATA[
					select w from Config w where w.fgroup = (
						select distinct x.fgroup from Config x where x.fvalue = :fvalue and x.fkey = 'com.qq.weixin.miniapp.appID'
					)
				]]>
			</jpql>
			<params>
				<param name="fvalue" dataType="String" keyword="Equals" connect-type="And" />
			</params>
			<result type="entity" pageable="false" />
		</method>
		
		<method name="findByKey" type="query" isSql="false">
			<params>
				<param name="fkey" dataType="String" keyword="Equals" connect-type="And" />
			</params>
			<result type="entity" pageable="false" />
		</method>
		
		<method name="findByKeyLike" type="query" isSql="false">
			<params>
				<param name="fkey" dataType="String" keyword="Like" connect-type="And" />
			</params>
			<result type="entity" pageable="false" />
		</method>
		
		<method name="findByKeyAndGroup" type="query" isSql="false">
			<params>
				<param name="fkey" dataType="String" keyword="Equals" connect-type="And" />
				<param name="fgroup" dataType="String" keyword="Equals" connect-type="And" />
			</params>
			<result type="entity" pageable="false" />
		</method>
		
		<method name="findByKeyLikeAndGroupEquals" type="query" isSql="false">
			<params>
				<param name="fkey" dataType="String" keyword="Like" connect-type="And" />
				<param name="fgroup" dataType="String" keyword="Equals" connect-type="And" />
			</params>
			<result type="entity" pageable="false" />
		</method>
		
		<method name="findByFgroup" type="query" isSql="false">
			<params>
				<param name="fgroup" dataType="String" keyword="Equals" connect-type="And" />
			</params>
			<result type="entity" pageable="false" />
		</method>
		
		<method name="findByFvalueAndFkey" type="query" isSql="false">
			<params>
				<param name="fvalue" dataType="String" keyword="Equals" connect-type="And" />
				<param name="fkey" dataType="String" keyword="Equals" connect-type="And" />
			</params>
			<result type="entity" count="1" pageable="false" />
		</method>
	</access>
</data>